<div class="content-title-top">
<% if @memberships.empty? %>
		<% if @user != User.current %>
		<p class="font_description">
			<%= l(:label_project_course_un) %>
		</p>
		<% else %>
		<p class="font_description">
			
			<%= l(:label_project_cousre_studentun) %><%= link_to"#{l(:label_course_join_student)}",{:controller=>'projects',:action=>'course', :course => 1}, :class => 'icon icon-add' %>			
			</p>
		<% end %>
<% else %>
	<div class="user_course_list">
  <div class="menu">
	<%= link_to"#{l(:label_course_view_student)}",course_path(course: 1), :class => 'icon icon-add' %>
    <ul>
      <li mode='doing' class="on">进行中</li>
      <li mode='end'>已完结</li>
    </ul>
  </div>

  <div class="dyn_list_wrapper" mode='doing'>
    <div class='created_course'>
      <%= render :partial => 'course_form', :locals => {:memberships => @memberships_doing} %>
    </div>
  </div>

  <div class="dyn_list_wrapper hidden" mode='end'>
    <div class="created_course ">
      <%= render :partial => 'course_form', :locals => {:memberships => @memberships_done} %>
    </div>
  </div>
</div>
	
<% end %>
	 
</div>
